package neibulei;

public class Test {

	public void test(A a){
		a.a();
	}
	public static void main(String[] args) {
		Test test = new Test();
		//test.test(new B());
		test.test(new A() {
			
			@Override
			public void a() {
				System.out.println("匿名内部类");
				
			}
		});
	}
}
